package cn.xej.health.team.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author xej
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("HEALTH.TB_TEAM")
public class Team {
    /**
     * 团队编号
     */
    @TableId(type = IdType.AUTO)
    private Integer tid;

    /**
     * 团队名称
     */
    private String tname;

    /**
     * 团队长编号
     */
    private Integer captainId;

    /**
     * 团队创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createDate;


    /**
     * 团队区划
     */
    private Integer did;

    /**
     * 团队长名称
     */
    @TableField(exist = false)
    private String captainName;


    /**
     * 团队区划名称
     */
    @TableField(exist = false)
    private String dname;
}
